/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 *
 */
import java.util.Scanner;
public class Administrator {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
      Scanner sc=new Scanner(System.in);
      Employee emp;
      int choose=0;
      while(true)
      {
        System.out.println("1/ Enter new employee");
        System.out.println("2/ Exit");
        try{
        System.out.println("\n\nEnter your choose: ");
        choose=sc.nextInt();
        }
        catch(Exception ex)
        {
            System.out.println("Must be a digit");
        }
        switch (choose)
        {
            case 1:
            {
                String name,address,phone;
                System.out.println("Enter your Name: ");
                name=sc.next();
                System.out.println("Enter your Address: ");
                address=sc.next();
                System.out.println("Enter your Phone number: ");
                phone=sc.next();
                emp=new Employee(name,address,phone);
                emp.setAddress(emp.StandalizedAdd(emp.getAddress(),"Street" , "St"));
                emp.setAddress(emp.StandalizedAdd(emp.getAddress(),"Road", "Rd"));
                emp.setAddress(emp.StandalizedAdd(emp.getAddress(),"Drive", "dr"));
                System.out.println("Address after Standalize: "+emp.getAddress());
                emp.setPhone(emp.StandalizePhone(emp.getPhone()));
                System.out.println("Phone after Standalize: "+emp.getPhone());
                break;
            }
            case 2:
            {
                System.out.println("Program exit sucessfull...");
                System.exit(1);
            }
            default:
            {
                System.out.println("wrong choosen....");
                break;
            }
        }
      }
    }

}